#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Project: spd-sxmcc
"""
@author: lyndon
@time Created on 2019/2/25 16:34
@desc
"""
import threading
import subprocess


class MyClass(threading.Thread):
    def __init__(self):
        self.stdout = None
        self.stderr = None
        threading.Thread.__init__(self)

    def run(self):
        p = subprocess.Popen(r'java -jar D:\iProject\mini\target\mini-1.0-SNAPSHOT.jar'.split(),
                             shell=False,
                             stdout=subprocess.PIPE,
                             stderr=subprocess.PIPE)

        self.stdout, self.stderr = p.communicate()


# myclass = MyClass()
# myclass.start()
# myclass.join()
# print myclass.stdout

